/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(150deg, #f8230200, #35c2dd);
  min-height: 100vh;
}

/* Navbar */
nav {
  background: rgb(5, 90, 237);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 30px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #333;
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.3s;
  background: #c5f802;
}

nav a.active,
nav a:hover {
  background: #c5f802;
}

/* Main Container */
.main-container {
  max-width: 600px;
  margin: 80px auto 0;
  padding: 20px;
}

/* Profile Section */
.profile-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.profile-section h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Resources Section */
.resources-section {
  text-align: center;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Gallery Section */
.gallery-section {
  margin-bottom: 30px;
}

.gallery-container {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-wrapper {
  display: flex;
  gap: 20px;
  padding: 10px 0;
}

.gallery-item {
  flex: 0 0 100%;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* 3D Gallery */
.gallery-3d {
  width: 100%;
  height: 566px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
}

.box {
  position: relative;
  width: 200px;
  height: 300px;
  transform-style: preserve-3d;
  animation: animate 20s linear infinite;
}

@keyframes animate {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }
  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}

.box:hover {
  animation-play-state: paused;
}

.box span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 36deg)) translateZ(450px);
  -webkit-box-reflect: below 2px
    linear-gradient(transparent, transparent, rgba(4, 4, 4, 0.267));
}

.box span img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  border: 4px double rgb(9, 9, 9);
}

/* Social Media Icons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.social-links a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  transform: scale(0);
  transition: all 0.3s ease;
  border-radius: 50%;
}

.social-links a:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-links .instagram {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.social-links .facebook {
  background: linear-gradient(45deg, #3b5998, #2f55a4);
}

.social-links .tiktok {
  background: linear-gradient(45deg, #000000, #69c9d0);
}

.social-links .youtube {
  background: linear-gradient(45deg, #ff0000, #c4302b);
}

/* Resource Buttons */
.resource-item {
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.resource-item:hover {
  transform: translateY(-5px);
  border-color: #c5f802;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.resource-item i {
  font-size: 24px;
  color: #35c2dd;
  transition: all 0.3s ease;
}

.resource-item:hover i {
  transform: scale(1.2);
  color: #c5f802;
}

/* Detail Button */
.detail-btn {
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: absolute;
  bottom: 15px;
  right: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 2px solid transparent;
}

.detail-btn:hover {
  background: white;
  border-color: #c5f802;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  margin-top: 90px;
  border-radius: 30px 30px 0 0;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  background: linear-gradient(45deg, #c5f802, #35c2dd);

  -webkit-text-fill-color: transparent;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 20px;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-group textarea {
  height: 150px;
  resize: none;
  padding-top: 15px;
  padding-left: 15px;
}

.input-group textarea ~ i {
  top: 25px;
  transform: none;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #c5f802;
  box-shadow: 0 0 0 5px rgba(197, 248, 2, 0.1);
  outline: none;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(45deg, #c5f802, #35c2dd);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(197, 248, 2, 0.3);
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 20px;
  position: relative;
  margin-top: 50px;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.footer p {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}
/*button geser*/
.scroll-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: absolute; /* Ubah dari fixed ke absolute */
  top: 152%; /* Sesuaikan dengan posisi relatif terhadap parent container */
  transform: translateY(-50%);
  z-index: 10; /* Pastikan tombol berada di atas konten lain */
}

/* Tombol kiri */
.scroll-btn.left {
  left: 0;
  margin-left: 440px;
}

/* Tombol kanan */
.scroll-btn.right {
  right: 0;
  margin-right: 440px;
}

.scroll-btn:hover {
  background: #c5f802;
  transform: translateY(-50%) scale(1.1);
}

.scroll-btn i {
  font-size: 18px;
  color: #333;
}

/* Container untuk slider */
.slider-container {
  position: relative; /* Tambahkan ini */
  width: 100%;
  overflow: hidden;
  padding: 0 50px; /* Beri ruang untuk tombol scroll */
}

/* Konten yang bisa di-scroll */
.slider-content {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 10px;
    gap: 15px;
  }

  nav ul {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 15px;
  }

  nav a {
    display: inline-block;
    padding: 8px 20px;
    min-width: 100px; /* Menyeragamkan lebar button */
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  nav a.active,
  nav a:hover {
    background: #c5f802;
    color: #333;
    transform: translateY(-2px);
  }

  .logo {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .logo img {
    height: 30px;
  }

  .logo span {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
  }

  /* Adjust main container for mobile */
  .main-container {
    max-width: 100%;
    padding: 10px;
    margin-top: 120px;
  }

  /* Adjust resources grid */
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Adjust 3D gallery */
  .box span {
    transform: rotateY(calc(var(--i) * 36deg)) translateZ(300px);
    top: -20%;
  }

  /* Adjust scroll buttons */
  .scroll-btn.left {
    left: 0;
    margin-left: 10px;
    top: 155%;
  }

  .scroll-btn.right {
    right: 0;
    margin-right: 10px;
    top: 155%;
  }

  /* Adjust contact section for mobile */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .contact-section {
    margin-top: -40px;
    padding: 20px 10px;
  }

  .contact-form {
    padding: 20px;
  }

  .map-container {
    height: 300px;
    margin-top: 20px;
  }

  /* Adjust gallery section */
  .gallery-section {
    margin: 0 -10px;
  }

  .gallery-wrapper {
    padding: 10px;
  }

  /* Adjust profile section */
  .profile-section {
    margin: 0 0 20px 0;
    padding: 20px;
  }

  /* Adjust resources section */
  .resources-section {
    margin: 0 0 20px 0;
    padding: 20px;
  }
}

/* background button detail! */
.green-button {
  background-color: rgb(4, 230, 241);
  color: rgb(5, 6, 0);
}
